package com.stepcleanse.system.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.stepcleanse.system.mapper.RefundOrderMapper;
import com.stepcleanse.system.domain.RefundOrder;
import com.stepcleanse.system.service.IRefundOrderService;

/**
 * 退款订单Service业务层处理
 * 
 * @author stepcleanse
 * @date 2024-12-09
 */
@Service
public class RefundOrderServiceImpl implements IRefundOrderService 
{
    @Autowired
    private RefundOrderMapper refundOrderMapper;

    /**
     * 查询退款订单
     * 
     * @param refundOrderId 退款订单主键
     * @return 退款订单
     */
    @Override
    public RefundOrder selectRefundOrderByRefundOrderId(String refundOrderId)
    {
        return refundOrderMapper.selectRefundOrderByRefundOrderId(refundOrderId);
    }

    /**
     * 查询退款订单列表
     * 
     * @param refundOrder 退款订单
     * @return 退款订单
     */
    @Override
    public List<RefundOrder> selectRefundOrderList(RefundOrder refundOrder)
    {
        return refundOrderMapper.selectRefundOrderList(refundOrder);
    }

    /**
     * 新增退款订单
     * 
     * @param refundOrder 退款订单
     * @return 结果
     */
    @Override
    public int insertRefundOrder(RefundOrder refundOrder)
    {
        return refundOrderMapper.insertRefundOrder(refundOrder);
    }

    /**
     * 修改退款订单
     * 
     * @param refundOrder 退款订单
     * @return 结果
     */
    @Override
    public int updateRefundOrder(RefundOrder refundOrder)
    {
        return refundOrderMapper.updateRefundOrder(refundOrder);
    }

    /**
     * 批量删除退款订单
     * 
     * @param refundOrderIds 需要删除的退款订单主键
     * @return 结果
     */
    @Override
    public int deleteRefundOrderByRefundOrderIds(String[] refundOrderIds)
    {
        return refundOrderMapper.deleteRefundOrderByRefundOrderIds(refundOrderIds);
    }

    /**
     * 删除退款订单信息
     * 
     * @param refundOrderId 退款订单主键
     * @return 结果
     */
    @Override
    public int deleteRefundOrderByRefundOrderId(String refundOrderId)
    {
        return refundOrderMapper.deleteRefundOrderByRefundOrderId(refundOrderId);
    }
}
